package com.aoxin.mapper.course.systemCourse;
import com.aoxin.model.course.AloneCourseToPage;
import org.apache.ibatis.annotations.Param;
import java.util.LinkedList;
import java.util.Map;
public interface AloneCourseToPageDao {
    /**
     * 给某个包插入课程
     * @param courseId
     * @param coursePageId
     * @return
     */
    Integer insertCourseToPage(@Param("courseId")Integer courseId,@Param("coursePageId") Integer coursePageId,@Param("schoolId")String schoolId);

    /**
     * 根据课程包id和学校查询对应课程
     * @param AloneCourseToPage
     * @return
     */
    LinkedList<Map<String,Object>> getCourseToPage(AloneCourseToPage AloneCourseToPage);

    /**
     * 课程包里的课程不能重复
     * @param
     * @return
     */
    Integer checkCourseToPage(@Param("courseId")Integer courseId,@Param("coursePageId") Integer coursePageId,@Param("schoolId")String schoolId);

    /**
     * 修改某个课程包对应的课程
     * @param AloneCourseToPage
     * @return
     */
    Integer updateCourseToPage(AloneCourseToPage AloneCourseToPage);

    /**
     *  删除某个课程包对应的课程
     * @return
     */
    Integer deleteCourseToPage(@Param("csToPgId")Integer csToPgId,@Param("coursePageId")Integer coursePageId);

    /**
     * 获取未添加到课程包的课程
     * @return
     */
    LinkedList<Map<String,Object>> getOtherCourseToPage(Integer coursePageId);
}